<div class="layui-row">
    <ul class="layui-nav layui-bg-green" style="z-index:999;">
        <li class="layui-nav-item">
            <a href="/admin"><i class="layui-icon layui-icon-home"></i></a>
        </li>
        {foreach $menus as $val}
        <!-- 导航栏选中样式: .layui-this-->
        {if $val.focus}
        <li class="layui-nav-item layui-nav-child-l layui-this">
        {else}
        <li class="layui-nav-item layui-nav-child-l">
        {/if}
            {if empty($val.child_menus) === false}
            <a href="javascript:;">{$val.title}</a>
            <dl class="layui-nav-child" style="z-index: 999;"> <!-- 二级菜单 -->
                {foreach $val.child_menus as $child_menu}
                <dd><a href="/{$child_menu.uri}">{$child_menu.title}</a></dd>
                {/foreach}
            </dl>
            {/if}
        </li>
        {/foreach}
        <li class="layui-nav-item">
            <a href="javascript:;">{:session('admin_user.nickname')}</a>
            <dl class="layui-nav-child layui-nav-child-l" style="z-index: 999;"> <!-- 二级菜单 -->
                <dd><a href="/admin/user/edit2">编辑资料</a></dd>
                <dd><a href="/admin/user/logout">登出</a></dd>
            </dl>
        </li>
    </ul>
</div>